package com.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-02
 * Time: 21:42
 */
@RestController
public class StudentController {
    @Autowired
    private Student student;

    @GetMapping("/read")
    public String readStudent(){
        return student.toString();
    }
}
